package y2018.date0912.批量下载;

import java.io.File;

public class CleanUtil {

    public static void deleteFiles(String dir) {
        for (File file : new File(dir).listFiles()) {
            if (!file.delete()) {
                throw new Error("File delete faile");
            }
        }
    }
}
